﻿using EnvDTE;

namespace ClassMetadataBrowser.Domain.Metadata
{
	public class InterfaceMetdata : MetadataObjectBase
	{
		protected override void CodeElementSet(CodeElement element)
		{
			CodeInterface inter = (CodeInterface)element;
			SetAccess(inter.Access);
			AttributesCount = inter.Attributes == null ? 0 : inter.Attributes.Count;
		}

		public override void Accept(IMetadataVisitor visitor)
		{
			visitor.Visit(this);
		}
	}
}
